import { secklist } from "../../../request/api"
const state = {
    seckill: []
}
const getters = {
    getseckill(state) {
        return state.seckill
    }
}
const mutations = {
    REQ_GETSECKILL(state, payload) {
        return state.seckill = payload
    }
}
const actions = {
    getSecillAction({ commit }) {
        secklist().then(res => {
            commit('REQ_GETSECKILL', res.list)
        })
    }
}
export default {
    state, getters, mutations, actions,
    namespaced: true
}